/**
 * @name: detection
 * @author: pengxiaoqi
 * @date: 2022/4/20 5:26 下午
 * @description：detection
 * @update: 2022/4/20 5:26 下午
 */
import Layout from '@/components/layout/layout.vue'
import building from "@/view/infomation/index.vue";
import buildingList from "@/view/infomation/buildingList.vue";
import editbuilding from "@/view/infomation/editbuilding.vue";
import addresident from "@/view/resident/addresident.vue";
import editresident from "@/view/resident/editresident.vue";
const infomation = [{
  path: '/infomation',
  name: 'infomation',
  component: Layout,
  meta: {
    title: '基础信息管理'
  },
  children: [{
      path: '/building',
      name: 'building',
      component: building,
      redirect: "/building/",
      meta: {
        title: '楼栋管理'
      },
      children: [{
          path: '/',
          name: 'buildingList',
          component: buildingList,
        },
        {
          path: '/building/edit',
          name: 'editbuilding',
          component: editbuilding,
        }
      ],
    },
    {
      path: '/addresident',
      name: 'addresident',
      component: addresident,
      meta: {
        title: '居民管理'
      },
    },
    {
      path: '/editresident',
      name: 'editresident',
      component: editresident,
      meta: {
        title: '居民管理-修改'
      },
    },
  ]
}]
export default infomation;
